package com.szrt.java.day20170113.ch05;

import org.junit.Test;

public class SingleTonTest {
	
	@Test
	public void singleTest01(){
		
		SingleTon s1 = SingleTon.getInstance();
		SingleTon s2 = SingleTon.getInstance();
		
		System.out.println(s1 == s2);
	}
	
	@Test
	public void singleTest02(){
		
		SingleTon02 s1 = SingleTon02.getInstance();
		SingleTon02 s2 = SingleTon02.getInstance();
		
		System.out.println(s1 == s2);
	}

}
